Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

173
Visualizações
PowerShell :: click on href="javascript:;" and download document

I'm writing a script in PowerShell that can allows me to login into this page and download a file.

The login is done, but I now have a new problem: the .zip file I want to download doesn't have a plain text URL but instead is generated by JavaScript. If I inspect the element this is what I see:

<a ng-if="config.fileType.fileType != 'DOCUMENT'" href="javascript:;" data-ng-click="checkForFileAndDownload(getVersionForCurrentLanguage(file.versions))" class="ng-binding ng-scope">post_adressdaten 2021-09-07</a> == $0

enter image description here

That link doesn't has a Tag or an ID therefore I cannot click on it. Even if I click on it then the browser will ask to save and I don't know how to proceed.

You can create an account and login to that page if you want to inspect by yourself.

Any help will be much appreciated.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The workaround was to search in the page for the text and click on it:

$link = $ie.Document.getElementsByTagName('A') | where-object {$_.innerText -like 'post_adressdaten*'}
$link.click()

This the whole

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda